<!DOCTYPE html>
<!--suppress ALL-->
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="description" content="seo">
    <meta name="keywords" content="keywords">
    <meta name="author" content="jiangtao">

    <title>老年人信息</title>
    <link th:href="@{/favicon.png}" type="image/x-icon" rel="shortcut icon">
    <link th:href="@{/static/assets/bootstrap/css/bootstrap.css}" rel="stylesheet" type="text/css">
    <link th:href="@{/static/assets/jqueryui/css/jquery-ui.css}" rel="stylesheet" type="text/css">

    <script>
        var ctx = "[[@{/}]]";
    </script>
    <style>
        .container {
            padding: 0!important;
        }

        .my-part {
            padding: 20px;
        }
        .my-part .part-title label {
            letter-spacing: 2px;
        }
        .my-part.part-1 {
            margin-top: 30px;
        }
        .my-part .part-title {
            font-size: 20px;
            color: #5776df;
        }
        .my-part .part-detail {
            margin-top: 5px;
            padding: 15px 0;
            background-color:#f9f9f9;
        }
        .my-part .part-detail .my-row {
            margin-top: 10px;
            font-size: 18px;
        }
        .my-part .part-detail .my-row:first-child {
            margin-top: 0;
        }
        .my-part.part-2 {
            margin-top: 0;
        }

        .my-tag {
            display: inline-block;
            margin-right: 10px;
            padding: 5px 15px;
            border: 1px solid #000;
            border-radius: 5px;
            font-size: 16px;
        }
        .record {
            height: 80px
        }
        .record .slide-item {
            background-color: #fff;
            padding: 10px;
            font-size: 16px;
        }
        .record .slide-item .ask {
            color: blue;
        }

        .part-4 .service .sub-title {
            float: left;
            width: 11.5%;
            width: 145px;
            padding-top: 25px;
            text-align: center
        }
        .part-4 .service .sub-title span {
            font-size: 18px;
            letter-spacing: 2px;
        }
        .part-4 .service .sub-items {
            float: right;
            width: 85%;
            width: calc(100% - 180px);
        }
        .part-4 .service .sub-items .my-row .tag-div {
            margin-top: 20px;
        }
        .part-4 .service.service-1 .sub-title {
            padding-top: 0;
        }
        .part-4 .service.service-1 .sub-items .my-row .tag-div {
            margin-top: 0;
        }
        .part-4 .service .a-num {
            display: inline-block;
            padding: 0 5px;
            height: 24px;
            width: 24px;
            text-align: center;
            color: #fff;
            background-color: #5776df;
            border-radius: 50%;
        }

        .tag-div span {
            display: inline-block;
            padding: 5px 10px 3px 10px;
            border-radius: 5px;
            color: #fff;
        }

        .part-4 .tip {
            display: inline-block;
            margin-left: 30px;
            font-size: 16px;
        }
        .part-4 .tip.tip1 {
            margin-left: 0;
            color: green;
        }
        .part-4 .tip.tip2 {
            color: yellow;
        }
        .part-4 .tip.tip3 {
            color: gray;
        }

        .tag-green span {
            background-color: green;
        }
        .tag-yellow span {
            background-color: #fffd35;
            color: #555;
        }
        .tag-gray span {
            background-color: gray;
        }

    </style>
</head>
<body>
<a href="#top"></a>
<div class="wrapper">
    <div class="header">
        <div class="container">
            <img th:src="@{/static/images/banner.png}" style="max-width: 1200px; width: 100%;">
        </div>
    </div>
    <div class="main" style="margin-top: 50px;">
        <div class="container">
            <div class="row query-box" style="margin: 0 auto; width: 40%">
                <div class="input-group">
                    <input type="text" id="kw" class="form-control" placeholder="老人姓名、身份证号">
                    <div class="input-group-addon" style="padding: 0 30px; background-color: #F1F1F1;">
                        <span class="glyphicon glyphicon-search"></span>
                    </div>
                </div>
            </div>

            <div class="my-part part-1">
                <div class="part-title">
                    <label>
                        <span class="glyphicon glyphicon-play"></span>  基本信息
                    </label>
                </div>
                <div class="part-detail">
                    <div class="my-row">
                        <div class="col-md-4 col-sm-4">老人姓名：<span id="username">张铮铮</span></div>
                        <div class="col-md-4 col-sm-4">老人年龄：78</div>
                        <div class="col-md-4 col-sm-4">养老顾问：李敏 18616903766</div>
                        <div class="clearfix"></div>
                    </div>

                    <div class="my-row">
                        <div class="col-md-4 col-sm-4">联系电话：15889789634</div>
                        <div class="col-md-4 col-sm-4">老人性别：男</div>
                        <div class="col-md-4 col-sm-4">家庭医生：王义 18601738511</div>
                        <div class="clearfix"></div>
                    </div>

                    <div class="my-row">
                        <div class="col-md-4 col-sm-4">居住地址：莘庄镇秀文路485弄50号</div>
                        <div class="col-md-4 col-sm-4">所属居委：东街居委会</div>
                        <div class="col-md-4 col-sm-4">紧急联系人：张名(儿子) 15654862145</div>
                        <div class="clearfix"></div>
                    </div>

                    <div class="my-row">
                        <div class="col-md-12 col-sm-12">老人备注：沁春路1366弄99号（莘庄镇社区综合为老服务中心）</div>
                        <div class="clearfix"></div>
                    </div>
                </div>
            </div>

            <div class="my-part part-2">
                <div class="part-title">
                    <label>
                        <span class="glyphicon glyphicon-play"></span>  养老方式
                    </label>
                </div>
                <div class="part-detail">
                    <div class="my-row">
                        <div class="col-md-4 col-sm-4" style="color: #5776df;">养老机构：南张安老院</div>
                        <div class="col-md-4 col-sm-4">日托机构：-</div>
                        <div class="col-md-4 col-sm-4">居家服务组织：-</div>
                        <div class="clearfix"></div>
                    </div>
                </div>
            </div>

            <div class="my-part part-3">
                <div class="part-title">
                    <label>
                        <span class="glyphicon glyphicon-play"></span>  身份标签
                    </label>
                </div>
                <div class="part-detail">
                    <div class="col-md-12 col-sm-12">
                        <span class="my-tag tag1">低保</span>
                        <span class="my-tag tag1">失独</span>
                        <span class="my-tag tag1">纯老</span>
                        <span class="my-tag tag1">孤老</span>
                        <span class="my-tag tag1">独居</span>
                        <span class="my-tag tag1">纳保</span>
                        <span class="my-tag tag1">纯老</span>
                        <span class="my-tag tag1">孤老</span>
                        <span class="my-tag tag1">独居</span>
                        <span class="my-tag tag1">纳保</span>
                        <a href="">+更多</a>
                    </div>
                    <div class="clearfix"></div>
                </div>
            </div>

            <div class="my-part part-4">
                <div class="part-title">
                    <label>
                        <span class="glyphicon glyphicon-play"></span>  养老服务
                    </label>
                    <span>
                        (
                        <span class="tip tip1">绿色：已享受</span>
                        <span class="tip tip2">黄色：未享受</span>
                        <span class="tip tip3">灰色：不享受</span>
                        )
                    </span>
                </div>
                <div class="part-detail">
                    <div class="service service-1">
                        <div class="sub-title" style="margin-top: 5px; ">
                            <span>政策保障</span>
                        </div>
                        <div class="sub-items">
                            <div class="my-row">
                                <div class="col-md-3 col-sm-3 tag-div tag-yellow"><span>老年综合津贴</span></div>
                                <div class="col-md-3 col-sm-3 tag-div tag-gray"><span>三支回沪医疗补助</span></div>
                                <div class="col-md-3 col-sm-3 tag-div tag-gray">
                                    <span>银发无忧保险</span>
                                    <a href="javascript:showShareYear('银发无忧保险', '2016, 2017, 2019')" class="a-num">3</a>
                                </div>
                                <div class="col-md-3 col-sm-3 tag-div tag-green"><span>养老服务补贴</span></div>
                                <div class="clearfix"></div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>

                    <div class="service service-2">
                        <div class="sub-title">
                            <span>健康医疗</span>
                        </div>
                        <div class="sub-items">
                            <div class="my-row">
                                <div class="col-md-3 col-sm-3 tag-div tag-gray"><span>长期护理保险</span></div>
                                <div class="col-md-3 col-sm-3 tag-div tag-green"><span>家庭医生签约</span></div>
                                <div class="col-md-3 col-sm-3 tag-div tag-gray"><span>家庭床位</span></div>
                                <div class="col-md-3 col-sm-3 tag-div tag-yellow">
                                    <span>老年人体检</span>
                                    <a href="javascript:showShareYear('老年人体检', '2016, 2017, 2019, 2020')" class="a-num">4</a>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>

                    <div class="service service-3">
                        <div class="sub-title">
                            <span>服务照料</span>
                        </div>
                        <div class="sub-items">
                            <div class="my-row">
                                <div class="col-md-3 col-sm-3 tag-div tag-green"><span>康乐福</span></div>
                                <div class="col-md-3 col-sm-3 tag-div tag-gray"><span>老伙伴服务对象</span></div>
                                <div class="col-md-3 col-sm-3 tag-div tag-yellow"><span>老吾老计划</span></div>
                                <div class="col-md-3 col-sm-3 tag-div tag-yellow"><span>过老化改造</span></div>
                                <div class="col-md-3 col-sm-3 tag-div tag-green"><span>爬楼机租赁</span></div>
                                <div class="col-md-3 col-sm-3 tag-div tag-gray"><span>助餐</span></div>
                                <div class="clearfix"></div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>

                    <div class="service service-4">
                        <div class="sub-title">
                            <span>日常关爱</span>
                        </div>
                        <div class="sub-items">
                            <div class="my-row">
                                <div class="col-md-3 col-sm-3 tag-div tag-yellow">
                                    <span>元旦春节慰问</span>
                                    <a href="javascript:showShareYear('元旦春节慰问', '2016, 2017, 2019, 2020')" class="a-num">3</a>
                                </div>
                                <div class="col-md-3 col-sm-3 tag-div tag-yellow">
                                    <span>夏送清凉慰问</span>
                                    <a href="javascript:showShareYear('夏送清凉慰问', '2016, 2017, 2019, 2020')" class="a-num">3</a>
                                </div>
                                <div class="col-md-3 col-sm-3 tag-div tag-green">
                                    <span>敬老节慰问</span>
                                    <a href="javascript:showShareYear('敬老节慰问', '2016, 2017, 2019, 2020')" class="a-num">3</a>
                                </div>
                                <div class="col-md-3 col-sm-3 tag-div tag-gray">
                                    <span>百岁老人慰问</span>
                                    <a href="javascript:showShareYear('百岁老人慰问', '2016, 2017, 2019, 2020')" class="a-num">3</a>
                                </div>
                                <div class="col-md-3 col-sm-3 tag-div tag-gray">
                                    <span>长寿面</span>
                                    <a href="javascript:showShareYear('长寿面', '2016, 2017, 2019, 2020')" class="a-num">3</a>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>

                    <div class="service service-5">
                        <div class="sub-title">
                            <span>志愿服务</span>
                        </div>
                        <div class="sub-items">
                            <div class="my-row">
                                <div class="col-md-3 col-sm-3 tag-div tag-gray"><span>老伙伴志愿者</span></div>
                                <div class="col-md-3 col-sm-3 tag-div tag-yellow"><span>时间银行</span></div>
                                <div class="clearfix"></div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>

                    <div class="service service-6">
                        <div class="sub-title">
                            <span>其他服务</span>
                        </div>
                        <div class="sub-items">
                            <div class="my-row">
                                <div class="col-md-3 col-sm-3 tag-div tag-yellow"><span>残疾人两项补贴</span></div>
                                <div class="col-md-3 col-sm-3 tag-div tag-green"><span>计生</span></div>
                                <div class="col-md-3 col-sm-3 tag-div tag-gray"><span>救助帮困</span></div>
                                <div class="col-md-3 col-sm-3 tag-div tag-green"><span>双拥</span></div>
                                <div class="clearfix"></div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </div>
            </div>
        </div>
        <div style="height: 50px;"></div>
    </div>
</div>

<div class="modal fade" id="myServiceModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="modalTitle">提示</h4>
            </div>
            <div class="modal-body" id="modalBody">
                内容
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>

<script th:src="@{/static/js/jquery.min.js}"></script>
<script th:src="@{/static/assets/bootstrap/js/bootstrap.min.js}"></script>
<script th:src="@{/static/assets/jqueryui/js/jquery-ui.js}"></script>
<script>
    function showShareYear(item, years) {
        var username = $('#username').text();
        $('#modalTitle').text(item);
        $('#modalBody').html('自莘庄镇实施【'+item+'】项目以来，老人'+username+'在<b>'+years+'</b>年都已经享受该服务。');
        $('#myServiceModal').modal('show');
    }
    $(function () {
        var elders = [
            {label: '管秀芳', value: '310110193607051627', address: '莘松路958弄大浪湾道66-67号'},
            {label: '袁叶兰', value: '310110193502071613', address: '秀文路485弄50号'},
            {label: '张钧焕', value: '310226195609274918', address: '莘西路66号'},
            {label: '赵彭寿', value: '310110192612155434', address: '七莘路700号'},
            {label: '孙粉林', value: '310110192205075023', address: '中春路5801号'},
            {label: '顾仁根', value: '31010819150721001X', address: '沁春路1366弄99号3楼'},
            {label: '徐建荣', value: '310110195801015055', address: '莘凌路285弄8号'},
            {label: '张兰花', value: '310110195402105088', address: '沁春路1366弄98号'},
            {label: '王长法', value: '310110194901075034', address: '伟业路11号万科小区'},
            {label: '闻利民', value: '310109193502060820', address: '西环路387号莘裕菜场'}
        ];
        $( "#kw" ).autocomplete({
            minLength: 0,
            source: elders,
            focus: function( event, ui ) {
                $( "#kw" ).val( ui.item.label );
                return false;
            },
            select: function( event, ui ) {
                $( "#kw" ).val( ui.item.label );
                //$( "#project-id" ).val( ui.item.value );
                return false;
            }
        })
            .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
            return $( "<li>" ).append('<div style="padding: 8px 15px; font-size: 16px;"><b>'+item.label+'</b>【'+item.value+'】- '+item.address+'</div>').appendTo( ul );
        };
    });

</script>

</body>
</html>